package com.ss.android.article.common.share.log;

import android.content.Context;

import com.ss.android.account.c.QZone;

public final class BaseQZoneShareListener implements QZone.a$a {
    private Context mContext;
    private boolean isQZone;

    public BaseQZoneShareListener(Context context, boolean isQZone) {
        this.mContext = context;
        this.isQZone = isQZone;
    }

    public final void onComplete() {
        android.support.design.a.onQQResponeLog(this.mContext, 0, this.isQZone);
    }

    public final void onError(int arg5, String arg6) {
        if(this.mContext != null) {
            android.support.design.a.onQQResponeLog(this.mContext, arg5, this.isQZone);
            String v0 = this.mContext.getString(com.ss.android.article.browser.R.string.toast_qq_share_error);
            if(!android.support.design.a.isTextEmpty(arg6)) {
                v0 = ": " + arg6;
            }
            android.support.design.a.showToast(this.mContext, v0, this.mContext.getResources().getDrawable(com.ss.android.article.browser.R.drawable.close_popup_textpage));
        }
    }

    public final void onCancel() {
        android.support.design.a.onQQResponeLog(this.mContext, -2, this.isQZone);
    }
}

